package com.iot08.common.entity.app;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * 单聊数据库对象
 * @time: 2021-10-30 17:27
 * @author: Weichao
 * @version 1.0
 */
@Data
@Document("single_chat_group")
public class SingleChatGroup implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    private String id;

    private String openid;

    private String imei;

    //APP 单聊 未读消息，会员未读数量
    private Integer bage = 0;

    //APP单聊，非会员的未读数量
    private Integer noVipBage = 0;

    //APP 单聊 删除最后一条消息的id
    private String deletemsgid;

    //APP 单聊 删除最后一条消息的时间
    private Double deletetime;

    @Field("t")
    private Double timestamp;

    private Date createTime;

    private String name;

    private String image;

}
